using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class shijianUI : MonoBehaviour
{
    public GameObject shijianppp;
    public Transform tform;
    private void Awake()
    {
        EventCenter.GetInstance().AddEventListener<string>("tanchu", tanchu);
    }
    public void tanchu(string str)
    {
        GameObject @object= Instantiate(shijianppp, tform);
        @object.GetComponent<shijianppp>().text.text = str;
    }
}
